package com.scpii.universal.pns.service;

import java.util.List;

import com.scpii.universal.pns.entity.UserActions;

public interface UserActionsService {
	/**
	 * 根据用户的动作查找改工作的记录条数
	 * 
	 * @param appId
	 * @param targetId TODO
	 * @param actionType
	 * @return
	 */
	public Integer getUserActionCountByType(Integer appId, Long targetId, String actionType);

	public List<UserActions> getUserActionsByUserId(Long userId,
			Integer pageNo, Integer pageSize);

	/**
	 * 查找用戶動作的合計
	 * 
	 * @param appId
	 * @param targetId TODO
	 * @param actionType
	 * @param pageNo
	 * @param pageSize
	 * @return
	 */
	public List<UserActions> getUserActionsByActionType(Integer appId,
			Long targetId, String actionType, Integer pageNo, Integer pageSize);

}
